// =====================================================================
// <copyright file="IValidationProperties.cs" author="David R. Guindo">
// 	Copyright (C) 2013. All rights reserved.
// </copyright>
// =====================================================================
// This code is released under the terms of the Apache 2.0 license, 
// http://apache.org/licenses/LICENSE-2.0.html
// =====================================================================

namespace AppBlock.Core.Validations
{
    using System.Collections.Generic;

    public interface IValidationProperties
    {
        /// <summary>
        ///     Gets the errors or warnings result of validation.
        /// </summary>
        ICollection<IValidatable> Validations { get; }

        /// <summary>
        ///     Gets a value indicating whether this instance is valid.
        /// </summary>
        /// <value>
        ///     <c>true</c> if this instance is valid; otherwise, <c>false</c>.
        /// </value>
        bool IsValid { get; }
    }
}